package org.jeecg.modules.meter.service;

import org.jeecg.entity.meter.MeterControlSwitch;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.vo.meter.MeterSwitchRespVo;

import java.util.List;

/**
 * @Description: 仪表通断记录表
 * @Author: jeecg-boot
 * @Date:   2020-11-20
 * @Version: V1.0
 */
public interface IMeterControlSwitchService extends IService<MeterControlSwitch> {

    boolean controlSwitchRequest(String meterId,Integer state);

    void controlSwitchMeter(List<MeterSwitchRespVo> meterSwitchRespVoList);

    int updateCallbackStatus(MeterControlSwitch meterControl);


    List<MeterSwitchRespVo> getSwitchRecord(String meterId);

    MeterControlSwitch selectById(String requestCode);
}
